<?php
include('includes/utilities.php');
$tBiopsia=$_POST['tBiopsia'];
$stBiopsia=$_POST['stBiopsia'];
$tPap=$_POST['tPap'];
$stPap=$_POST['stPap'];
$doctor=$_POST['doctor'];
$mat1=$_POST['mat1'];
$mat2=$_POST['mat2'];
$asunto=$_POST['asunto'];
$con=OpenDB();
mysql_query("UPDATE key_value SET _value='".$tBiopsia."' WHERE _key='tituloBiopsia'");
mysql_query("UPDATE key_value SET _value='".$stBiopsia."' WHERE _key='subtituloBiopsia'");
mysql_query("UPDATE key_value SET _value='".$tPap."' WHERE _key='tituloPap'");
mysql_query("UPDATE key_value SET _value='".$stPap."' WHERE _key='subtituloPap'");
mysql_query("UPDATE key_value SET _value='".$doctor."'WHERE _key='doctor'");
mysql_query("UPDATE key_value SET _value='".$mat1."' WHERE _key='matricula1'");
mysql_query("UPDATE key_value SET _value='".$mat2."' WHERE _key='matricula2'");
mysql_query("UPDATE key_value SET _value='".$asunto."' WHERE _key='asunto email'");


header("location: editarKeyValue.php");
CloseDB($con);
?>